<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Config;

/**
 *  招聘会地区栏目表
 */
class InviteAddress extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    protected $failException = true;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\api\model\InviteAddress();
        if (!Config::get('fastadmin.usercenter')) {
            $this->error(__('User center already closed'));
        }
    }

    /**
     * 招聘会数据统计
     * @return void
     */
    public function info(){
        $this->success('ok',$this->model->select());
    }

}